package com.kgc.scd.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 * @author jiangguoqiang
 * @since 2022-11-16
 */
@Data
@Builder
@TableName("shop_goods")
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @TableField("category_id")
    private Integer categoryId;

    @TableField("name")
    private String name;

    @TableField("goods_number")
    private Integer goodsNumber;

    /**
     * 简要描述
     */
    @ApiModelProperty("简要描述")
    @TableField("goods_brief")
    private String goodsBrief;

    /**
     * 正在打折
     */
    @ApiModelProperty("正在打折")
    @TableField("is_on_sale")
    private Integer isOnSale;

    /**
     * 专柜价格
     */
    @ApiModelProperty("专柜价格")
    @TableField("counter_price")
    private BigDecimal counterPrice;

    /**
     * 附加价格
     */
    @ApiModelProperty("附加价格")
    @TableField("extra_price")
    private BigDecimal extraPrice;

    /**
     * 商品主图
     */
    @ApiModelProperty("商品主图")
    @TableField("primary_pic_url")
    private String primaryPicUrl;

    /**
     * 商品列表图
     */
    @ApiModelProperty("商品列表图")
    @TableField("list_pic_url")
    private String listPicUrl;

    /**
     * 零售价格
     */
    @ApiModelProperty("零售价格")
    @TableField("retail_price")
    private BigDecimal retailPrice;

    /**
     * 销售量
     */
    @ApiModelProperty("销售量")
    @TableField("sell_volume")
    private Integer sellVolume;

    /**
     * 主sku　product_id
     */
    @ApiModelProperty("主sku　product_id")
    @TableField("primary_product_id")
    private Integer primaryProductId;

    /**
     * 单位价格，单价
     */
    @ApiModelProperty("单位价格，单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    /**
     * 限购
     */
    @ApiModelProperty("限购")
    @TableField("is_limited")
    private Integer isLimited;

    /**
     * 热销
     */
    @ApiModelProperty("热销")
    @TableField("is_hot")
    private Integer isHot;


}